﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RecuperareParola.aspx.cs" Inherits="Cotrobaie.RecuperareParola" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div id="headerMiddle">
	<div id="logo1">
        <asp:ImageButton ID="ImageButton6" runat="server"  ImageUrl="~/images/logomic.png" OnClick="goHome"/>
	</div>			    
</div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="bigBulina">
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/biggreeen.png"/>
        <div runat="server" id="contentBigBulina" class="contentBigBulina" style="text-align:left; top:180px; left:250px; color:White; width:600px;">


<asp:Timer runat="server" ID="UpdateTimer" Interval="5000" OnTick="UpdateTimer_Tick" Enabled="false"/>
<div id="all">
<div id="contact">
    <div id="pageTitle" class="pageTitle" style="position:relative; left:200px; width:500px">PASSWORD RECOVERY</div>
                        <table style="text-align:center;">
                            <tr>
                                <td colspan="3">
                                    <div id="salvareok" runat="server" visible="false" class="salvareok">
                                        <table><tr><td><img src="images/oksmall.png" align="middle" alt="salvare ok" id="salvareokPoza" runat="server"></td><td><p><div id="salvareokMesaj" runat="server"></div></p></td></tr></table>
                                    </div>
                                </td>
                            </tr>
                        </table>
<table border="0" cellpadding="3" cellspacing="4" id="Partea1" runat="server" visible="true">
  <tr>
    <td width="30" height="27">&nbsp;</td>
    <td><asp:Label ID="Label2" runat="server" AssociatedControlID="username">Username </asp:Label></td>
    <td>
      <asp:TextBox ID="username" runat="server" BorderWidth="1" BorderColor="#d2d2d2"
        BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="30" ValidationGroup="GrupInregBona"/></td>
    </tr>
  <tr>
    <td height="22">&nbsp;</td>
    <td height="22" colspan="2" align="center"><b>or</b>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><asp:Label ID="Label1" runat="server" AssociatedControlID="email" >E-mail </asp:Label></td>
    <td>
      <asp:TextBox ID="email" runat="server" BorderWidth="1" BorderColor="#d2d2d2"
        BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="30" ValidationGroup="GrupInregBona"/></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="left">
            <asp:Label ID="CapchaLabel" runat="server" AssociatedControlID="TextBoxCapcha">Capcha Code </asp:Label>
        </td>
        <td>
            <iframe frameborder="0" scrolling="no" width="180px" height="50" src="CaptchaImage/CapchaButton.aspx"></iframe>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>
            <asp:TextBox ID="TextBoxCapcha" runat="server" BorderWidth="1" BorderColor="#d2d2d2" 
                BorderStyle="Solid" Height="20" ForeColor="#707070" Width="180px" MaxLength="50" ValidationGroup="GrupInregBona"></asp:TextBox>&nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                ControlToValidate="TextBoxCapcha" 
                ErrorMessage="Capcha Code este obligatoriu"  Text="<blink style='color:red;'>*</blink>"
                ValidationGroup="GrupInregBona" SetFocusOnError="True" Display="Dynamic"/>
        </td>
    </tr>
  <tr>
    <td >&nbsp;</td>
    <td ><asp:Button ID="contactb" runat="server" Text="Get password" 
            CssClass="button" onclick="contactb_Click" ValidationGroup="GrupInregBona"/></td>
    <td>&nbsp;</td>
  </tr>
</table>
<table border="0" cellpadding="3" cellspacing="4" id="Partea2" runat="server" visible="false">
  <tr>
    <td width="30px" height="27"></td>
    <td width="160px">Username</td>
    <td></td>
    <td><asp:Label ID="UsernameRecParola" runat="server" Font-Bold="true" /></td>
  </tr>
  <tr>
    <td width="30px" height="27"></td>
    <td width="160px">Email</td>
    <td></td>
    <td><asp:Label ID="EmailRecParola" runat="server" Font-Bold="true" /></td>
  </tr>
  <tr>
    <td width="30px" height="27"></td>
    <td width="160px">Password</td>
    <td>
            <asp:RequiredFieldValidator ID="RFVParola" runat="server"
                ControlToValidate="Parola1" 
                ErrorMessage="Campul Parola este obligatoriu"  Text="<blink style='color:red;'>*</blink>"
                ValidationGroup="GrupInregBona" SetFocusOnError="True" Display="Dynamic"/>
            <!--Campul Parola trebuie sa contina: cel putin o litera mica, o litera mare si o cifra. Dimensiunea minima acceptata este 4-->
            <asp:RegularExpressionValidator ID="REVParola" runat="server" 
                ErrorMessage="Campul Parola trebuie sa contina minimum 6 carctere" 
                Text="<blink style='color:red;'>*</blink>" ValidationGroup="GrupInregBona" 
                ControlToValidate="Parola1" SetFocusOnError="true" Display="Dynamic" 
                ValidationExpression="^[\w\W]{6,50}$"/>
                <!--^.*(?=.{4,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$-->
    </td>
    <td>
        <asp:TextBox ID="Parola1" runat="server" TextMode="Password"/>
            <ajaxToolkit:PasswordStrength id="PassStrength" runat="server" 
                TargetControlID="Parola1" Enabled="True" MinimumLowerCaseCharacters="2" 
                MinimumNumericCharacters="1" MinimumSymbolCharacters="1" 
                MinimumUpperCaseCharacters="2" PreferredPasswordLength="10" 
                PrefixText="Putere: " RequiresUpperAndLowerCaseCharacters="True" 
                
                TextStrengthDescriptions="Foarte slaba (minim 6 carctere);Slaba (minim 6 carctere);Aproape buna (minim 6 carctere);Medie;Buna;Foarte Buna;Excelenta" 
                TextCssClass="style2" />
    </td>
  </tr>
   <tr>
    <td width="30px" height="27">&nbsp;</td>
    <td width="160px">Confirm</td>
    <td>
            <asp:RequiredFieldValidator ID="RFV2" runat="server"
                ControlToValidate="Parola2" 
                ErrorMessage="Campul Parola este obligatoriu"  Text="<blink style='color:red;'>*</blink>"
                ValidationGroup="GrupInregBona" SetFocusOnError="True" Display="Dynamic"/>
            <asp:CompareValidator ID="CVParola2Bona" runat="server"
                ErrorMessage="Nepotrivire Parole" ControlToCompare="Parola1" 
                ControlToValidate="Parola2" SetFocusOnError="True" 
                Text="<blink style='color:red;'>*</blink>" ValidationGroup="GrupInregBona" 
                Display="Dynamic"></asp:CompareValidator>
    </td>
    <td><asp:TextBox ID="Parola2" runat="server" TextMode="Password"/></td>
  </tr>
  <tr>
    <td height="25">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Trebuie sa completati corect urmatoarele campuri: " 
                        ShowMessageBox="True" ShowSummary="False" 
                        ValidationGroup="GrupInregBona" />
    </td>
    <td height="25" colspan="2">
        <asp:Button ID="Modifica" runat="server" Text="Get password" ValidationGroup="GrupInregBona"
            CssClass="button" onclick="modif_Click"/></td>
    <td>&nbsp;</td>
  </tr>
</table>
</div>
</div></div></div>
</asp:Content>
